package com.wanghlme.day26.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Emp {

    private Integer empId;
    private String empName;
    private String empLogin;
    private String empPwd;
    @JSONField(format = "yyyy-MM-dd")
    private Date empHiredate;
    private Integer empAge;

    public Emp() {
        super();
    }

    public Emp(Integer empId, String empName, String empLogin, String empPwd, Date empHiredate, Integer empAge) {
        super();
        this.empId = empId;
        this.empName = empName;
        this.empLogin = empLogin;
        this.empPwd = empPwd;
        this.empHiredate = empHiredate;
        this.empAge = empAge;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpLogin() {
        return empLogin;
    }

    public void setEmpLogin(String empLogin) {
        this.empLogin = empLogin;
    }

    public String getEmpPwd() {
        return empPwd;
    }

    public void setEmpPwd(String empPwd) {
        this.empPwd = empPwd;
    }

    public Date getEmpHiredate() {
        return empHiredate;
    }

    public void setEmpHiredate(Date empHiredate) {
        this.empHiredate = empHiredate;
    }

    public Integer getEmpAge() {
        return empAge;
    }

    public void setEmpAge(Integer empAge) {
        this.empAge = empAge;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", empLogin='" + empLogin + '\'' +
                ", empPwd='" + empPwd + '\'' +
                ", empHiredate=" + empHiredate +
                ", empAge=" + empAge +
                '}';
    }
}